package com.ctsi.sms.client;

import com.ctsi.sms.config.SmsClientFallbackFactory;
import com.ctsi.sms.entity.SmsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "sms-service",fallbackFactory = SmsClientFallbackFactory.class)
public interface SmsClient {

    @RequestMapping(value = "/smsclient/send", method = RequestMethod.POST)
    void sendSMS(@RequestBody SmsEntity smsEntity);

}
